package com.oak.springbootshardingjdbc;

import org.springframework.data.jpa.repository.JpaRepository;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: GoodsDao
 * @Description
 * @Author guoxy
 * @Date 2020/5/14
 */
@Resource
public interface GoodsRepository extends JpaRepository<Goods, Long> {

    List<Goods> findAllByGooadsId(Long goodsId1, Long goodsId2);

    List<Goods> findAllByGoodsIdIn(List<Long> goodsIds);
}
